package com.whucs.smartgym.controller;

import com.whucs.smartgym.model.User;
import com.whucs.smartgym.service.IUserService;
import com.whucs.smartgym.service.Impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserControllerTest {
    @Autowired
    UserServiceImpl userService;

    @RequestMapping("/testuser")
    public void getUserById(Integer id){
        User user = userService.getUserById(1);
        System.out.println(user);
    }
}
